package com.tai.design.iterator;

/**
 * The interface Student iterator.
 *
 * @version v1.0
 * @ClassName: StudentIterator
 * @Description: 抽象迭代器角色接口
 * @Author: taylor
 */
public interface StudentIterator {

    /**
     * Has next boolean.
     *
     * @return the boolean
     */
//判断是否还有元素
    boolean hasNext();

    /**
     * Next student.
     *
     * @return the student
     */
//获取下一个元素
    Student next();
}
